#include <BustaModelTipJar.h>
Public Member Functions | |
BustaModelTipJar () | |
Constructor. | |
BustaModelTipJar (int s) | |
Constructor. | |
~BustaModelTipJar () | |
Destructor. | |
int | getSize () |
Gets size of tipjar. | |
void | setSize (int s) |
Sets size of tipjar. | |
int | getTips () |
Returns tips in jar. | |
void | addTips (int t) |
adds specified amount to the tipjar; | |
int | subtractTips (int t) |
removes tips from tipjar. | |
bool | isfull () |
Returns true if tipjar is full. |
Tip jar contains tips from customers, has specific amount that it take to fill, and cannot overflow
|
Constructor. Initializes variables |
|
Constructor. Initializes variables with fullamount s |
|
Destructor. Destructor |
|
adds specified amount to the tipjar; can only add tips up until full |
|
Gets size of tipjar. Gets the amount that can fit in the tip jar |
|
Returns tips in jar. returns the amount of tips in the tipjar |
|
Returns true if tipjar is full. returns true if tipjar is full |
|
Sets size of tipjar. Sets the amount that can fit in the tip jar |
|
removes tips from tipjar. returns amount actually subtracted |